import request from '../utils/request'

export const getDepartmentTree = () => {
  return request({
    url: '/department/getDepartmentTree',
    method: 'get'
  })
}

export const updateOrAddMenu = () => {
    return request({
      url: '/department/updateOrAddMenu',
      method: 'post'
    })
  }
  
  export const getDepartmentNameById = (id) => {
    return request({
      url: '/department/getDepartmentNameById',
      method: 'get',
      params:{id}
    })
  }